<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
	xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
      >


<body>
<ui:composition template="/templates/template.xhtml">
	

	<ui:define name="contenu">
		<f:view>
		<strong>Etape apres validation de la commande, paiement sécurisé</strong> <br/><br/>
		<h:messages style="color:red"/>
		<h:form>
			<table border="0">
				<tr>
					<td><h:outputLabel value="Nom suivi du prénom du propriétaire de la carte: "/></td>
					<td><strong><h:outputText value="#{controllerBeanJsf.customer.lastname}"/>, <h:outputText value="#{controllerBeanJsf.customer.firstname}"/></strong></td>
				</tr>
				<tr>
					<td><h:outputLabel value="Numéro de la carte"/></td><br/>
					<td><h:inputText value="#{controllerBeanJsf.numCb}" required="true"/></td>
				</tr>
				<tr>
					<td><h:outputLabel value="Type de la carte"/></td><br/>
					<td><h:inputText value="#{controllerBeanJsf.typeCb}"  required="true"/></td>
				</tr>
				<tr>
					<td><h:outputLabel value="La date d'expiration"/></td><br/>
					<td><h:inputText value="#{controllerBeanJsf.expDateCb}" type="date"  required="true">
						<f:convertDateTime pattern="d-M-yyyy" />
					</h:inputText></td>
				</tr>
				<tr>
				<td></td>
				<td><h:commandButton style="background:purple; color:white;border: 2px solid grey;border-radius:5px; height:30px" 
				value="Valider paiement" action="#{controllerBeanJsf.validPayment}" /></td>
				</tr>
			</table>
			 <br/><br/>
				
		</h:form> 
		<h:form>
			<h:commandButton style="background:purple; color:white;border: 2px solid grey;border-radius:5px; height:30px" 
				value="retour panier" action="#{controllerBeanJsf.goCardTicket}" />
		</h:form>
		
		</f:view>

	</ui:define>
	
</ui:composition>
</body>
</html>